<div class="dialog-body" style="height:230px">
    <ul class="dialog-body-ul">
        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">仓库代码</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input" ng-disabled="ngDialogData.warehouse.whId" ng-class="ngDialogData.warehouse.whId ? 'layui-disabled' : ''" ng-model="ngDialogData.warehouse.whCode"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">仓库名称</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input" ng-model="ngDialogData.warehouse.whName"/>
                </div>
            </div>
        </li>

        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">仓库类型</div>
                <div class="dialog-content">
                    <ui-select ng-model="ngDialogData.dropDownDefault.warehouseType">
                        <ui-select-match>
                            <span ng-bind="$select.selected.name"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="warehouseType in (ngDialogData.warehouseType | filter: $select.search) track by warehouseType.value">
                            <span ng-bind="warehouseType.name"></span>
                        </ui-select-choices>
                        <ui-select-no-choice>
                            没有加载到数据
                        </ui-select-no-choice>
                    </ui-select>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">仓库属性</div>
                <div class="dialog-content">
                    <ui-select ng-model="ngDialogData.dropDownDefault.warehouseAttr">
                        <ui-select-match>
                            <span ng-bind="$select.selected.name"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="warehouseAttr in (ngDialogData.warehouseAttr | filter: $select.search) track by warehouseAttr.value">
                            <span ng-bind="warehouseAttr.name"></span>
                        </ui-select-choices>
                        <ui-select-no-choice>
                            没有加载到数据
                        </ui-select-no-choice>
                    </ui-select>
                </div>
            </div>
        </li>
        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">自动分配库位</div>
                <div class="dialog-content">
                    <ui-select ng-model="ngDialogData.dropDownDefault.warehouseAuto">
                        <ui-select-match>
                            <span ng-bind="$select.selected.name"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="warehouseAuto in (ngDialogData.warehouseAuto | filter: $select.search) track by warehouseAuto.value">
                            <span ng-bind="warehouseAuto.name"></span>
                        </ui-select-choices>
                        <ui-select-no-choice>
                            没有加载到数据
                        </ui-select-no-choice>
                    </ui-select>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">地址</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input" ng-model="ngDialogData.warehouse.whAddress"/>
                </div>
            </div>
        </li>
        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">备注</div>
                <div class="dialog-content">
                    <textarea cols="61" rows="5" ng-model="ngDialogData.warehouse.whRemark"></textarea>
                </div>
            </div>
        </li>
    </ul>
</div>

<div class="dialog-toolbar">
    <button class="layui-btn" ng-click="saveOrUpdateWarehouseClick()">保存</button>
    <button class="layui-btn" ng-click="closeThisDialog()">取消</button>
</div>